package com.wwtech.epp.ui.activity.work.contract;

import com.wwtech.epp.entity.Comment;
import com.wwtech.epp.entity.ProjectDetail;
import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.Map;

/**
 * @author hzp
 * @Package The contract for ProjectDetailActivity
 * @Description: $description
 * @date 2017/09/15 15:02:18
 */
public interface ProjectDetailContract {
    interface View extends BaseView<ProjectDetailContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void showProject(ProjectDetail projectDetail);

        void onAddStarBack(boolean isAdd);

        void onQuickSuccess();
        void onFinishProjectSuccess();


        void showProjectComment(Comment comment);

        void deletSuccess();

        void deletCommentSuccess();
    }

    interface ProjectDetailContractPresenter extends BasePresenter {
        void getProjectDetail(String projectId, Map map);

        void addStar(Map map);

        void quickProject(Map map);
        void finishProject(Map map);

        void getProjectComment(String projectId, Map map);

        void deletProject(Map map);

        void deletComment(String commentId, Map map);
    }
}